import request from '@/utils/request'

// 查询核酸注册列表
export function listUseRegister(query) {
  return request({
    url: '/nucleicacid/useRegister/list',
    method: 'get',
    params: query
  })
}

// 查询核酸注册详细
export function getUseRegister(id) {
  return request({
    url: '/nucleicacid/useRegister/' + id,
    method: 'get'
  })
}

// 新增核酸注册
export function addUseRegister(data) {
  return request({
    url: '/nucleicacid/useRegister',
    method: 'post',
    data: data
  })
}

// 修改核酸注册
export function updateUseRegister(data) {
  return request({
    url: '/nucleicacid/useRegister',
    method: 'put',
    data: data
  })
}

// 删除核酸注册
export function delUseRegister(id) {
  return request({
    url: '/nucleicacid/useRegister/' + id,
    method: 'delete'
  })
}
